-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here

local map = vim.keymap.set

-- <S-h> & <S-l>: Switch buffer
-- Move buffer place
map("n", "<A-S-H>", "<cmd>BufferLineMovePrev<cr>", { desc = "Move this buffer to previous place" })
map("n", "<A-S-L>", "<cmd>BufferLineMoveNext<cr>", { desc = "Move this buffer to next place" })

-- Move to window using the <alt> hjkl keys
-- !!! Disabled. Use <ctrl> hjkl instead.
-- map({ "n", "i", "v", "t" }, "<A-h>", "<cmd>wincmd h<CR>", { desc = "Go to Left Window", remap = true })
-- map({ "n", "i", "v", "t" }, "<A-j>", "<cmd>wincmd j<CR>", { desc = "Go to Lower Window", remap = true })
-- map({ "n", "i", "v", "t" }, "<A-k>", "<cmd>wincmd k<CR>", { desc = "Go to Upper Window", remap = true })
-- map({ "n", "i", "v", "t" }, "<A-l>", "<cmd>wincmd l<CR>", { desc = "Go to Right Window", remap = true })

-- Resize window using <ctrl> arrow keys
-- !!! Disabled. Use mouse.
-- map("n", "<C-h>", "<cmd>vertical resize -2<cr>", { desc = "Decrease Window Width" })
-- map("n", "<C-j>", "<cmd>resize -2<cr>", { desc = "Decrease Window Height" })
-- map("n", "<C-k>", "<cmd>resize +2<cr>", { desc = "Increase Window Height" })
-- map("n", "<C-l>", "<cmd>vertical resize +2<cr>", { desc = "Increase Window Width" })
